Overview
The SourceSync SDK is a powerful toolkit for creating interactive and engaging video experiences. It allows developers to easily integrate dynamic content, overlays, and user interactions into their video applications.
Key Features
- Interactive Overlays: Add clickable elements, forms, and other interactive components on top of your videos.
- Time-Synchronized Content: Trigger content or actions at specific points in your video timeline.
- Custom Event Handling: Respond to user interactions and video events with custom logic.
- Cross-Platform Compatibility: Works seamlessly across web, mobile, and smart TV platforms.
- Analytics Integration: Track user engagement and interaction with built-in analytics tools.
SDK Structure
The SourceSync SDK is composed of three main libraries:
- Main SDK: Handles core functionality, initialization, and configuration.
- Moment Library: Manages time-based events and content synchronization.
- Render Library: Responsible for creating and managing interactive overlays.
Getting Started
To begin using the SourceSync SDK, you'll need to:
- Sign up for a SourceSync account at sourcesync.io.
- Obtain your API key from the SourceSync dashboard.
- Install the SDK in your project:
npm install sourcesync-sdk
- Initialize the SDK in your application:
import { initializeApp } from 'sourcesync-sdk/app';
const app = await initializeApp({
appKey: 'YOUR_API_KEY',
env: 'prod' // or 'dev' for development
});
Key Concepts
- App Instance: The core object that represents your SourceSync integration.
- Moments: Time-based events or content synchronized with your video.
- Activations: Interactive elements or overlays that appear during video playback.
- Renderers: Components responsible for displaying activations and handling user interactions.
Best Practices
- Always initialize the SDK before using any of its features.
- Use environment variables to store your API key securely.
- Implement error handling for SDK operations.
- Test your integrations thoroughly in both development and production environments.
Next Steps
Explore the individual library documentation for more detailed information: